package co.th.helper.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

public abstract class RowMapper<T> {

	public abstract T mapRow(ResultSet resultSet) throws SQLException;
	
	protected boolean isThere(ResultSet resultSet, String column) {
		try{
			resultSet.findColumn(column);
		    return true;
		  } catch (SQLException sqlex){;}
		  return false;
	}
}
